package com.ruoyi.web.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @Classname TestController
 * @Author: sunluquan
 * @Date: 2022/5/12 16:06
 * @Description TODO
 */
@Controller("test-controller")
@RequestMapping("/test1")
public class TestController {

    @GetMapping("/{path}")
    public String toPath(@PathVariable("path")String path){

        System.out.println("path:"+path);

        return path;
    }
}
